package Day08_2;

public class Test_enum {
    public static void main(String[] args)throws Exception {
     //  Result a =  divide(10,3);
     //   System.out.println(a==Result.SUCCESS?"计算成功":"计算失败");
        divide(10,0);
    }

    public static void divide(int a ,int b){
//        try {
//            int c = a/b;
//            return Result.SUCCESS;
//        }
//        catch(Exception e){
//            return Result.FAIL;
//        }
        int c = a/b;
    }
}


enum Result{ //枚举

    SUCCESS,FAIL;
}
enum Season{
    Spring,Summer,Autumn,Winter;

}

